<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=div, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .box {
            width: 225px;
            height: 150px;
            border: solid 1px black;
            margin: 300px auto;
            position: relative;
        }
        .box img {
            position: absolute;
            left: 0;
            top: 0;
            width: 225px;
            height: 150px;
            transform-origin: right top;
            transition: all 1s ease;
        }

        .box:hover img:nth-child(1) {
            transform: rotate(60deg);
        }
        .box:hover img:nth-child(2) {
            transform: rotate(120deg);
        }
        .box:hover img:nth-child(3) {
            transform: rotate(180deg);
        }
        .box:hover img:nth-child(4) {
            transform: rotate(24deg);
        }
        .box:hover img:nth-child(5) {
            transform: rotate(300deg);
        }
        .box:hover img:nth-child(6) {
            transform: rotate(360deg);
        }
    </style>
</head>
<body>
    <div class="box">
        <img src="./images/1.jpg" alt="">
        <img src="./images/2.jpg" alt="">
        <img src="./images/3.jpg" alt="">
        <img src="./images/4.jpg" alt="">
        <img src="./images/5.jpg" alt="">
        <img src="./images/6.jpg" alt="">
    </div>
</body>
</html>